<?php

use yii\helpers\Html;

$this->title = '仔猪增长异常统计';

use backend\assets\PrintAsset;

use backend\modules\statistics\assets\EchartsAsset;
EchartsAsset::register($this);
use yii\bootstrap\BootstrapAsset;
BootstrapAsset::register($this);
?>

<style>
    .row{
        margin-right: 0;
        margin-left: 0;
    }
</style>


<div class="content margin_top_foot">
    <header class="header fixed_top bg_mx_green">
        <div class="back_text" onclick="javascript:history.back(-1)">
            <div class="arrow_left"></div>
            返回
        </div>
        巡检统计
        <div class="header_icon">
            <span class="iconfont icon-home"></span>
        </div>
    </header>
    <div class="row">
        <div class="col-md-10 col-md-offset-1">
            <!--work progress start-->
            <section class="panel">
                <div class="panel-body progress-panel">
                    <div class="task-progress">
                        <h4>有过巡检的</h4>
                    </div>
                    <div class="task-option">
                    </div>
                </div>

                <table class="table table-hover">
                    <tbody>
                    <tr>
                        <th>
                            业务员
                        </th>
                        <th>
                            待巡检数
                        </th>
                        <th>
                            仔猪总数
                        </th>
                        <th>
                            最近巡检时间
                        </th>
                    </tr>

                    <?php foreach ($list as $key => $row) { ?>
                        <tr>
                            <td>
                                <?= $row['business_person'] ?>
                            </td>
                            <td>
                                <?= $row['num'] ?>
                            </td>
                            <td>
                                <?= $row['total'] ?>
                            </td>
                            <td>
                                <?= $row['createtime']; ?>
                            </td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>
            </section>

        </div>



    </div>

</div>

<script>
    <?php $this->beginBlock('js_end') ?>

    <?php $this->endBlock('jsend') ?>
    <?php $this->registerJs($this->blocks['js_end'], \yii\web\View::POS_END);//将编写的js代码注册到页面底部 ?>

</script>







